package com.light.util;

import java.util.Random;

/**
 * @Author MoonlightL
 * @ClassName: RandomUtil
 * @ProjectName flappy_bird
 * @Description: 随机工具类
 * @DateTime 2023/3/13, 0013 17:05
 */
public class RandomUtil {

    public static int getRandom(int min, int max) {
        Random random = new Random();
        return random.nextInt(max) % (max - min + 1) + min;
    }
}
